<?php

DEFINE('WDB_DIR', '../..');

return array(
    //enable debug mode. this directive has various usage over the framework.
    //disable it on production environment.
    'debug' => TRUE,
    //pre-configured database connections
    'connections' => array(
        'default' => array(
            'driver' => 'MySQL',
            'host' => '%mysql_host%',
            'user' => '%mysql_user%',
            'password' => '%mysql_pwd%',
            'port' => %mysql_port%,
            'schema' => 'pujcovna',
            //'model'=>'pujcovna', -- not needed, found by schema name
            'loglevel' => WDB\Query\Log::LOG_ALL,
        ),
        'log' => array(
            'driver' => 'MySQL',
            'host' => '%mysql_host%',
            'user' => '%mysql_user%',
            'password' => '%mysql_pwd%',
            'port' => %mysql_port%,
            'schema' => 'wdb',
        ),
    ),
    //directories
    //directory with NeonWheel model definitions
    'modeldir' => WDB_DIR . DIRECTORY_SEPARATOR . 'models' . DIRECTORY_SEPARATOR,
    //directory with read-write access, for cache etc.
    'datadir' => WDB_DIR . DIRECTORY_SEPARATOR . 'var' . DIRECTORY_SEPARATOR,
    //directory with language files
    'langdir' => WDB_DIR . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR,
    //directory with webui templates
    'templatesdir' => WDB_DIR . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR,
    //directory with 3rd party library classes (for auto-loader)
    'libdir' => array(
        WDB_DIR . DIRECTORY_SEPARATOR . '3rdparty' . DIRECTORY_SEPARATOR,
    ),
    //selected language identifier
    'lang' => 'cs',
    //user classes namespace or class prefix
    'userWrappersClassPrefix' => '\\WDB\\Wrapper\\User\\',
    'userWebUIClassPrefix' => '\\WDB\\WebUI\\User\\',
    //default record naming column identifier if no @nameColumn is present in table annotations
    'recordNameColumn' => 'name',
    'passwordSalt' => '&DuG0nG*$dugong'
);